package com.dagene.weixin.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.dagene.weixin.entity.WeixinUserInfo;

public interface WeixinUserInfoDao extends
		PagingAndSortingRepository<WeixinUserInfo, Long> {
	WeixinUserInfo findByOpenid(String openid);

	Page<WeixinUserInfo> findByCompany(String company, Pageable page);
}
